<template>
  <div class="recommend">
    <div
      v-for="(item, index) in recommends"
      :key="index"
      class="recommend-item"
    >
      <a href="">
        <img :src="item.image" alt="" />
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "recommend",
  props: ["recommends"],
};
</script>
<style lang="less" scoped>
.recommend {
  display: flex;
  text-align: center;
  padding: 10px 0 20px 0;
  border-bottom: 5px solid #eee;
  .recommend-item {
    flex: 1;
    img {
      width: 65px;
      margin-bottom: 10px;
    }
    div {
      font-size: 12px;
      color: var(--color-text);
    }
  }
}
</style>